const {DataTypes} = require('sequelize')
// const sequelize = require('../shared/sequelize')

module.exports = (sequelize) =>{
    // class Discuss extends Model{
    // console.log(sequelize)
    // }
    // Discuss.init({
    const Collection = sequelize.define('collect',{
        name:{type:DataTypes.STRING,allowNull:false,comment:'功能名称'},
        url:{type:DataTypes.TEXT('tiny'),allowNull:false,comment:'路径位置'},
        type:{type:DataTypes.STRING,comment:'功能类型'},
        url_toPath:{type:DataTypes.STRING,comment:'功能跳转路径'}
    })
    return Collection
}